﻿#include "header.h"
#include "interpretor.h"
#include "SudokuMaker.h"
#include "SudokuSolver.h"
#include "SudokuChecker.h"
#include "test.h"

int wmain(int argc, wchar_t* argv[])
{

	LARGE_INTEGER n_freq;
	LARGE_INTEGER t1;
	LARGE_INTEGER t2;
	double dt;
	QueryPerformanceFrequency(&n_freq);
	QueryPerformanceCounter(&t1);

	setlocale(LC_ALL, "");

	mallocSudoku(sudoku);
	if (interpret(argc, argv) != 0)
		showHelp();

	//test();//如需测试可将此取消注释

	freeSudoku(sudoku);

	QueryPerformanceCounter(&t2);
	dt = (t2.QuadPart - t1.QuadPart) / (double)n_freq.QuadPart;
	std::cout << "Running time:" << dt << "s" << std::endl;
	
	return 0;
}